
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, "PingFang SC", "Microsoft Yahei", sans-serif;
  font-size: 14px;
}
/* 图片默认宽度100% */
img {
  width: 100%;
}

/* 定义变量 */
:root {
  --primary-color: #ff434f;
  --secondary-color: #e3e3e3;
  --text-color-lightest: #e7e9ec;
  --text-color-darker: #2e2e2e;
  --text-color-dark: #494949;
  --text-color-gray: #8b8b8b;
  --text-color-dark-gray: #727272;
  --text-color-light-gray: #c6c6c6;
  --backdrop-color: rgba(42, 42, 42, 0.69);
}

/* ============= 头部================== */

/* 头部 */
header {
  width: 100vw;
  height: 80px;
  /* 栅格布局 */
  display: grid;
  padding: 0 40px;

  /* 两列，一列占三分之一，一列占三分之二 */
  grid-template-columns: 1fr 2fr;
  /* 垂直居中 */
  align-items: center;
  /* 用于定位导航菜单 */
  position: relative;
  z-index: 200;
}

/* logo */
.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color-lightest);
}

/* 导航 */
header nav {
  /* 水平靠右对齐 */
  justify-self: end;
}

/* 导航链接 */
header nav a {
  color: var(--text-color-lightest);
  text-decoration: none;
  margin: 0 24px;
}

/* 搜索图标 */
header nav i {
  color: var(--text-color-lightest);
}
/* 折叠菜单 */
header .burger {
  display: none;
}

/* 页面下滑时固定导航，背景设置为白色 */
header.sticky {
  position: fixed;
  background-color: white;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
  animation: dropDown 0.5s ease-in-out forwards;
}

/* 固定导航文字颜色为黑色 */
header.sticky .logo,
header.sticky nav a,
header.sticky nav i {
  color: var(--text-color-darker);
}

/* 固定导航下滑动画 */
@keyframes dropDown {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
  }
}

/* ============= 轮播 ================== */
.glide {
  /* 定位标题和图片 */
  position: relative;
  /* 抵消导航高度 */
  top: -80px;
  /* 放置在最下层 */
  z-index: 50;
}

/* 轮播的图片和视频的大小 */
.glide__slide img,
.glide__slide video {
  object-fit: cover;
  width: 100vw;
  height: 100vh;
}

/* 轮播的布局 */
.glide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 轮播标题容器 */
.slide-caption {
  position: absolute;
  /* 放置在遮罩上层 */
  z-index: 70;
  color: var(--text-color-lightest);
  text-align: center;
  max-width: 60vw;
}

/* 轮播标题默认不显示，在JS中用动画移入  */
.slide-caption > * {
  opacity: 0;
}

/* 轮播标题中的主标语 */
.slide-caption h1 {
  font-size: 54px;
  font-weight: 600;
}

/* 轮播标题中的副标语 */
.slide-caption h3 {
  font-size: 24px;
  margin: 48px 0;
}

/* 第二页轮播标题布局方式 */
.slide-caption.left {
  max-width: 80vw;
  text-align: left;
}

/* 轮播遮罩层 */
.backdrop {
  background: var(--backdrop-color);
  opacity: 0.5;
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  /* 放置在幻灯片上层 */
  z-index: 60;
}

.glide__arrows,
.glide__bullets {
  z-index: 70;
}

/* 探索更多按钮 */
.explore-btn {
  padding: 14px 32px;
  background-color: var(--primary-color);
  border: 0;
  border-radius: 4px;
  color: var(--text-color-lightest);
  font-size: 18px;
  cursor: pointer;
  outline: none;
}

/* ============= 内容区域 ================== */

/* 通用样式  */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 所有section都按grid布局 */
section {
  display: grid;
  /* 单元格都居中对齐 */
  justify-items: center;
  max-width: 1180px;
  padding: 0 80px;
}

/* 区域大标题 */
.title1 {
  /* justify-self: center; */
  /* position: relative; */
  font-size: 34px;
  color: var(--text-color-darker);
}
/* 大标题下方红线 */
.title1::after {
  content: "";
  display: block;
  width: 80%;
  height: 4px;
  transform: translateX(10%);
  margin-top: 14px;
  background-color: var(--primary-color);
}

/* 大d标题下方简介 */
.intro {
  margin: 28px 0 60px 0;
  font-size: 18px;
  color: var(--text-color-dark-gray);
}

/* 区域背景色，因为区域有最大宽度限制，用before来设置占满浏览器宽度 */
.section-bg {
  position: relative;
}

.section-bg::before {
  content: "";
  display: block;
  position: absolute;
  background-color: #f9fbfb;
  width: 100vw;
  height: 100%;
  z-index: -1;
}

/* ============= 关于我们 ================== */

/* 关于我们 */
.about-us {
  padding-bottom: 32px;
}

/* 公司业务布局 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 126px 126px;
  column-gap: 5vw;
  align-items: center;
}

/* 业务 */
.feature {
  display: grid;
  /* 规划栅格，图标占两行，标题和内容各占一行 */
  grid-template-areas:
    "icon title"
    "icon content";
  /* 每列的宽度，第一列60象素，第二列占满剩余空间 */
  grid-template-columns: 60px 1fr;
  /* 三行 */
  grid-template-rows: 1fr 3fr;
}

/* 图标 */
.feature i.fas {
  grid-area: icon;
  font-size: 34px;
  color: var(--primary-color);
}

/* 标题 */
.feature-title {
  grid-area: title;
  font-size: 18px;
  color: var(--text-color-darker);
}

/* 内容 */
.feature-content {
  grid-area: content;
  color: var(--text-color-gray);
  margin-top: 8px;
}

/* ============= 成功案例 ================== */

/* 成功案例 */
.showcases {
  max-width: unset;
  padding: 0;
  padding-top: 72px;
}
.filter-btns {
	margin-top: 54px;
	margin-bottom: 38px;
}
.filter-btn {
	margin: 0 7px;
	background-color: var(--secondary-color);
	border: 0;
	color: var(--text-color-dark-gray);
	padding: 8px 18px;
	border-radius: 4px;
	cursor: pointer;
	transition: 0.5s;
}

.filter-btn:focus, .filter-btn:active {
	outline: none;
}

.filter-btn.active, .filter-btn:hover {
	background-color: var(--primary-color);
	color: white;
}

.showcases .cases {
	width: 100vw;
}

.showcases .case-item {
	width: 25vw;
	height: 20vw;
	overflow: hidden;
}
.case-item img {
	height: 100%;
	object-fit: cover;
}
/* 服务流程 */
.service {
	padding-top: 131px;
}

.services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: 1fr 1fr;
	column-gap: 38px;
	row-gap: 34px;
}

.service-item {
	display: grid;
	grid-template-areas: "icon title" 
	"icon contene";
	grid-template-columns: 67px 1fr;
	grid-template-rows: 1fr 3fr;
	padding: 24px;
	box-shadow: 0px 0px 18px rgba(0,0,0,0.06);
}
.service-item i.fas {
	grid-area: icon;
	font-size: 42px;
	color: var(--primary-color);
	padding-top: 6px;
}
.service-item .service-title {
	grid-area: title;
	color: var(--text-color-darker);
	font-size: 24px;
}
.service-item .service-content {
	grid-area: contene;
	color: var(--text-color-gray);
	line-height: 30px;
	font-size: 16px;
	margin-top: 8px;
}
/* 团队介绍 */

.team-intro {
	margin-top: 43px;
	padding-top: 62px;
	padding-bottom: 52px;
}
.team-members {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	margin-top: 86px;
}
.team-member {
	background-color: white;
	box-shadow: 0px 0px 24px rgba(0,0,0,0.2);
	text-align: center;
	padding-bottom: 28px;
	transition: 0.4s;
	display: grid;
	justify-content: center;
}

.profile-image {
	overflow: hidden;
}

.profile-image img {
	width: 100%;
	height: 264px;
	object-fit: cover;
	object-position: top center;
}

.team-member .name {
	margin-top: 18px;
	font-size: 18px;
	font-weight: 500;
	color: var(--text-color-dark);
}
.team-member .position {
	color: var(--text-color-dark-gray);
	margin-top: 12px;
	margin-bottom: 18px;
}
.social-links {
	width: 100%;
	max-width: 200px;
	display: flex;
	justify-content: space-between;
	padding: 0 42px;
	margin-left: 16px;
}
.social-links li {
	list-style: none;
}

.social-links li a {
	color: var(--text-color-dark);
	font-size: 22px;
	text-decoration: none;
}
.team-member:hover {
	transform: translateY(-20px) scale(1.05);
	box-shadow: 0px 0px 36px rgba(0,0,0,0.1);
}

/* 数据部分 */
.data-section {
	max-width: unset;
	width: 100vw;
	height: 255px;
	background-image: url(images/adult-business-computer-contemporary-380769.jpg);
	background-size: cover;
	background-position: center;
	display: grid;
	grid-template-columns: repeat(4, minmax(auto, 220px));
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 20;
}
.data-section::before {
  content: "";
  display: block;
  position: absolute;
  background-color: var(--backdrop-color);
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 每个数据项的样式 */
.data-piece {
  width: 250px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  color: white;
  position: relative;
  z-index: 40;
}

/* 数据图标 */
.data-piece i.fas {
  font-size: 44px;
}

/* 数据数字 */
.data-piece .num {
  margin-top: 7px;
  font-size: 41px;
  font-weight: 600;
}

/* 数字单位 */
.data-piece .data-desc {
  font-size: 18px;
  font-weight: 500;
}

.company-activities {
  margin-top: 88px;
}

/* 动态栅格布局 */
.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
}
/* 动态 */
.activity {
  box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.1);
  padding: 24px;
  transition: 0.4s;
}

/* 动态图片容器 */
.act-image-wrapper {
  height: 255px;
  overflow: hidden;
  /* 抵消activity的padding */
  margin: -24px;
  margin-bottom: 0;
}

/* 动态图片 */
.act-image-wrapper img {
  min-height: 300px;
  object-fit: cover;
}

/* 动态元数据 */
.activity .meta {
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--text-color-light-gray);
  font-size: 12px;
  display: flex;
}

/* 评论 */
.activity .meta > p:last-child {
  margin-left: 36px;
}

/* 动态标题 */
.act-title {
  color: var(--text-color-dark);
  font-size: 18px;
  margin-bottom: 16px;
}

/* 动态摘要 */
.activity article {
  color: var(--text-color-gray);
  letter-spacing: 0.54px;
  line-height: 24px;
}

/* 阅读更多按钮 */
.readmore-btn {
  border: 0;
  color: white;
  background-color: var(--primary-color);
  border-radius: 4px;
  padding: 6px 14px;
  margin-top: 24px;
}

/* 动态鼠标移上时 */
.activity:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow: 0px 0px 36px rgba(0, 0, 0, 0.1);
}

/* 底部信息 */
footer {
	margin-top: 124px;
	background-color: #181818;
	display: grid;
	justify-content: center;
	padding-top: 72px;
	padding-bottom: 24px;
}
.footer-menus {
	width: 100%;
	max-width: 1180px;
	display: grid;
	grid-template-columns: 2fr repeat(4, 1fr); /* 一个2fr.一个1fr */
	padding: 0 80px;
	position: relative;
}

.menu-title {
	font-size: 16px;
	color: white;
	font-weight: 500;
	margin-bottom: 20px;
}

.contact-us {
	justify-self: start;
	color: var(--text-color-lightest);
}

.contact-us p:not(:first-child) {         /* 第一个p后面的 */
	padding-bottom: 16px;
}

.menu-items li {
	list-style: none;
	padding-bottom: 8px;
}

.menu-items li a{
	text-decoration: none;
	font-weight: 300;
	color: var(--text-color-lightest);
}

.icp-info {
	padding-top: 24px;
	margin-bottom: 16px;
}
.icp-info, .rights {
	grid-column: 1 / -1;
	justify-self: center;
	color: white;
}

/* 返回顶部按钮 */

.scrollToTop {
	display: none;
}
.scrollToTop a {
	width: 32px;
	height: 32px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary-color);
	color: white;
	text-decoration: none;
	position: fixed;
	bottom: 60px;
	right: 30px;
}

/* 响应式 */

@media (max-width:576px) {     /* 屏幕低于576的时候 */
	header nav {
		display: none;        /* 隐藏导航栏 */
	}
	
	header {
		grid-template-columns: repeat(2, 1fr);  /* logo和按钮分成两列 */
	}
	
	header .burger {              /* 出现展开按钮 */
		display: block;
		width: 20px;
		height: 6px;
		position: relative;
		justify-self: end;     /* 自己靠右对齐 */
	}
	
	.burger-line1, .burger-line2, .burger-line3 {
		width: 20px;
		height: 2px;
		background-color: var(--text-color-lightest);
	}
		
	.burger-line1 {
		position: absolute;
		top: -6px;
	}
	.burger-line3 {
		position: absolute;
		top: 6px;
	}
	.slide-caption h1 {
		font-size: 25px;
	}
	.slide-caption h3 {
		font-size: 14px;
	}
	.explore-btn {
		font-size: 14px;
		padding: 8px 18px;
	}
	.team-members {
		grid-template-columns: minmax(200px, 400px);
	}
	.team-member {
		margin-bottom: 20px;
	}
	/* 公司动态 */
	.activities {
		grid-template-columns: 1fr;
		row-gap: 30px;
	}
	.features, .service {
		grid-template-columns: 1fr;
	}
	.showcases .case-item {
		width: calc(100vw / 2);
		height: 30vw;
	}
	.footer-menus {
		grid-template-columns: 1fr;
	}
	 .feature, .services {
		grid-template-columns: 1fr;
	}
	 .scrollToTop {
		 display: none;
	 }
	 .footer-menu {
	   justify-self: start;
	   text-align: left;
	 }
	 /* 数据部分 */
	 .data-section {
	   /* 每列最小宽度为200象素，最大为自动 */
	   grid-template-columns: repeat(2, minmax(200px, auto));
	   row-gap: 24px;
	   height: auto;
	   padding: 24px 0;
	   background-size: 200%;
	 }
}
